import { JSXLexer } from "./jsxLexer";

//解析器
let input = '1312331';
let tag1 = '<div></div>'
let tag2 = '<div>13123213</div>'
let tag3 = `<div a='c' b="d">13123213</div>`
let tag4 = `<div a={b}>13123213</div>`
let tag5 = `<div a='c' b="d" a={b}>13123213</div>`
let tag6 = `<div>{a}</div>`
let tag7 = `<div>123123{a}</div>`
let tag8 = `<div>aaa{ddd}eee</div>`
let tag9 = `<div><span><span></div>`
let tag10 = `<div><img/></div>`
let tag11 = `<div>{a > b ? <Foo/> : <CD/>}</div>`
let tag12 = `<div><div>13132</div>{13123}</div>`

let lexer = new JSXLexer(tag12);

while(lexer.c != JSXLexer.EOF){
    lexer.nextToken();
}

console.log(lexer.toString());